package cn.lili.modules.member.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.member.entity.dos.UnionLog;
import cn.lili.modules.member.fallback.UnionLogFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.USER_SERVICE, contextId = "union-log", fallback = UnionLogFallback.class)
public interface UnionLogClient {

    @PostMapping("/feign/unionLog/addUnionLog")
    Boolean addUnionLog(@RequestBody UnionLog unionLog);

    @PostMapping("/feign/unionLog/batchAddUnionLog")
    void batchAddUnionLog(@RequestBody List<UnionLog> unionLog);
}
